import request from '@/util/request.js'
/**
 * @description 获取直播列表
 * @param {Object} data
 */
export function getLiveList(data){
	return request({
		url:'/getLiveAllList',
		method:'get',
		data
	})
}

/**
 * @description 获取企业列表
 * @param {Object} data
 */
export function getEnterpriseAll(data){
	return request({
		url:'/getEnterpriseAll',
		method:'get',
		data
	})
}
/**
 * @description 获取岗位列表
 * @param {Object} data
 */
export function getEnterprisePubById(data){
	return request({
		url:'/getEnterprisePubById',
		method:'get',
		data
	})
}
/**
 * @description 开启直播
 * @param {Object} data
 */
export function createLive(data){
	return request({
		url:'/liveStart',
		method:'post',
		data
	})
}
/**
 * @description 关闭直播
 * @param {Object} data
 */
export function closeLive(data){
	return request({
		url:'/liveEnd',
		method:'GET',
		data
	})
}
/**
 * @description 根据房间号获取详情
 * @param {Object} data
 */
export function getLiveData(data){
	return request({
		url:'/getLiveByRoom',
		method:'GET',
		data
	})
}
/**
 * @description 根据房间号获取带岗信息
 * @param {Object} data
 */
export function getLivePostList(data){
	return request({
		url:'/getLivePostList',
		method:'GET',
		data
	})
}
/**
 * @description 获取直播预告列表
 * @param {Object} data
 */
export function getLivePortendList(data){
	return request({
		url:'/livePortendList',
		method:'GET',
		data
	})
}
/**
 * @description 获取直播预告详情
 */
export function getLivePortendDetailed(data){
	return request({
		url:'/livePortendDetailed',
		method:'GET',
		data
	})
}
/**
 * @description 获取已结束直播回放
 * @param {Object} data
 */
export function getEndLive(data){
	return request({
		url:'/getEndLive',
		method:'GET',
		data
	})
}